function ChatPrintError( um )
    chat.AddText(player, Color(255,0,0,255), um:ReadString())
end
usermessage.Hook("inv_chatprinterror", ChatPrintError)

function ChatPrintNormal( um )
    chat.AddText(player, Color(200,200,200,255), um:ReadString())
end
usermessage.Hook("inv_chatprintnormal", ChatPrintNormal)

function ClientWaveInfoUpdate( um )
    CurrentWave = um:ReadFloat()
	CurrentWaveTimeLeft = um:ReadFloat()
	WaveRunning = um:ReadBool()
	GameHasEnded = um:ReadBool()
end
usermessage.Hook("inv_clientwaveinfoupdate", ClientWaveInfoUpdate)


function PowerCoreHealthHudUpdate( um )
    PowerCoreHealth = um:ReadFloat()
	--print("Update" .. PowerCoreHealth)
end
usermessage.Hook("inv_clientpowercorehudupdate", PowerCoreHealthHudUpdate)